zabbix_export: version: '6.0' date: '2021-11-25T12:41:37Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: 6fb102566b2c476981a3b1e3eea14cb7 template: 'App bcmstat' name: 'App bcmstat' templates: - name: 'Template App SSH Service' groups: - name: Templates items: - uuid: 870b877d19524e0f9df656d993c5b8cf name: 'Core Temp' type: DEPENDENT key: CoreTemp delay: '0' value_type: FLOAT units: C preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[4]; - type: RTRIM parameters: - C master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats triggers: - uuid: c273eac3bf36433ca33b6865fe2b5f26 expression: 'last(/App bcmstat/CoreTemp)>=85' name: '{HOST.NAME} temperature is extreamly hot' priority: DISASTER description: '85C is when the RPi begins under-clocking. It should auto shutdown before reaching 90C when components risk damage.' dependencies: - name: '{HOST.NAME} temperature is very hot' expression: 'last(/App bcmstat/CoreTemp)>=80' - uuid: 35fb87df374c4981841549a86a4587d5 expression: 'last(/App bcmstat/CoreTemp)>=70' name: '{HOST.NAME} temperature is hot' priority: AVERAGE dependencies: - name: 'No Data From BCMStats' expression: 'nodata(/App bcmstat/ssh.run[bcmstat_{HOST.NAME}],5m)=0' - uuid: 5c4c84e3c33e411aaf864a2f04c2efd0 expression: 'last(/App bcmstat/CoreTemp)>=80' name: '{HOST.NAME} temperature is very hot' priority: HIGH dependencies: - name: '{HOST.NAME} temperature is hot' expression: 'last(/App bcmstat/CoreTemp)>=70' - uuid: 9c73115c9776441fbb11ef6f7858940a name: 'CPU0 % used' type: DEPENDENT key: cpu0 delay: '0' value_type: FLOAT units: '%' preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[13].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 81d93413e8a84b02a0ef711617bb65bd name: 'CPU1 % used' type: DEPENDENT key: cpu1 delay: '0' value_type: FLOAT units: '%' preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[14].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: cc8fd330cadf442190b0fa4caa188671 name: 'CPU2 % used' type: DEPENDENT key: cpu2 delay: '0' value_type: FLOAT units: '%' preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[15].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: fcd6db458949412f91c4299e51540e93 name: 'CPU3 % used' type: DEPENDENT key: cpu3 delay: '0' value_type: FLOAT units: '%' preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[16].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 9e4cd5388f4d4009a7357bc9d26dc82b name: 'CPU Memory Free' type: DEPENDENT key: cpumem delay: '0' value_type: FLOAT units: B preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[20].replace(/,/g, ''); - type: MULTIPLIER parameters: - '1000' master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 9c098b57b8ac4894bd70262938032708 name: 'CPU Speed' type: DEPENDENT key: CPUMHz delay: '0' units: MHz preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[1]; - type: RTRIM parameters: - Mhz master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 15f003fc79c84264b6162c2f660fbe91 name: 'GPU Memory Free' type: DEPENDENT key: gpumem delay: '0' value_type: FLOAT units: MB preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[17].replace(/,/g, ''); - type: RTRIM parameters: - M master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 2063a98fdad3428d9fe9ff678344abbf name: 'GPU Speed' type: DEPENDENT key: GPUMhz delay: '0' units: MHz preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[2]; - type: RTRIM parameters: - Mhz master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 6aa6ba054d7540939660221aa1dbeb79 name: 'H264 Speed' type: DEPENDENT key: H264Mhz delay: '0' units: MHz preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[3]; - type: RTRIM parameters: - Mhz master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: d067eba08eec44798ac7e35b5c42b9a3 name: 'IRQ per second' type: DEPENDENT key: IRQs delay: '0' units: IRQ/s description: 'Interrupt requests per second' preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[6].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 8f48ab1b3e3b4dc997bf716b3aa195eb name: 'RX Bytes per second' type: DEPENDENT key: rxbps delay: '0' units: bps preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[7].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats - uuid: 215dce242e234be2b45d7c9c2af84eef name: bcmstat type: SSH key: 'ssh.run[bcmstat_{HOST.NAME}]' delay: 8s history: '0' trends: '0' value_type: CHAR params: '/usr/bin/bcmstat.sh J3mH0Yqprg | tail -2 | head -1' authtype: PUBLIC_KEY username: root password: Z4bb1x publickey: id_rsa.pub privatekey: id_rsa description: 'Absolutely requires bcmstat.sh v0.5.4+. Anything before this doesn''t have the J option and my workaround was crazy janky.' tags: - tag: Application value: BCMStats triggers: - uuid: e176102f6c124b8c94e9cf4256e0ad3a expression: 'nodata(/App bcmstat/ssh.run[bcmstat_{HOST.NAME}],5m)=0' name: 'No Data From BCMStats' priority: AVERAGE dependencies: - name: 'SSH service is down on {HOST.NAME}' expression: 'max(/App bcmstat/net.tcp.service[ssh],#3)=0' - uuid: 17dfcf2ea5d544308bde9660182870f2 name: 'TX Bytes per second' type: DEPENDENT key: txbps delay: '0' units: bps preprocessing: - type: JAVASCRIPT parameters: - | var parsed = value.split(" ").filter(function(e){ return e === 0 || e }); return parsed[8].replace(/,/g, ''); master_item: key: 'ssh.run[bcmstat_{HOST.NAME}]' tags: - tag: Application value: BCMStats dashboards: - uuid: 0e9c67ee536f4a93878edde573974250 name: 'BCMStats Overview' pages: - widgets: - type: GRAPH_CLASSIC width: '24' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: Speed host: 'App bcmstat' - type: GRAPH_CLASSIC 'y': '5' width: '24' height: '5' fields: - type: INTEGER name: source_type value: '1' - type: ITEM name: itemid value: key: CoreTemp host: 'App bcmstat' - type: GRAPH_CLASSIC 'y': '10' width: '24' height: '5' fields: - type: INTEGER name: source_type value: '0' - type: GRAPH name: graphid value: name: 'Network Transmissions' host: 'App bcmstat' - type: GRAPH_CLASSIC 'y': '15' width: '24' height: '5' fields: - type: INTEGER name: source_type value: '1' - type: ITEM name: itemid value: key: IRQs host: 'App bcmstat' - uuid: 0bbd5e407d7544b28a508e18db81c235 template: 'Template App SSH Service' name: 'Template App SSH Service' groups: - name: Templates items: - uuid: 096952457aad464e9669a0fef710874b name: 'SSH service is running' type: SIMPLE key: 'net.tcp.service[ssh]' delay: '60' history: 7d valuemap: name: 'Service state' tags: - tag: Application value: 'SSH service' triggers: - uuid: 8f6ce4930afd48f0acc229bad5092c79 expression: 'max(/Template App SSH Service/net.tcp.service[ssh],#3)=0' name: 'SSH service is down on {HOST.NAME}' priority: AVERAGE valuemaps: - uuid: 80377235a65c4d119745137e4658ef67 name: 'Service state' mappings: - value: '0' newvalue: Down - value: '1' newvalue: Up graphs: - uuid: 48d6c78fb9284b3486e8e1e62837a847 name: 'Core Use %' graph_items: - color: 1A7C11 item: host: 'App bcmstat' key: cpu0 - sortorder: '1' color: F63100 item: host: 'App bcmstat' key: cpu1 - sortorder: '2' color: 2774A4 item: host: 'App bcmstat' key: cpu2 - sortorder: '3' color: A54F10 item: host: 'App bcmstat' key: cpu3 - uuid: bcc855c6e16a40d2b06d1c573926a739 name: 'Memory Available' graph_items: - color: 1A7C11 item: host: 'App bcmstat' key: cpumem - sortorder: '1' color: 0040FF item: host: 'App bcmstat' key: gpumem - uuid: d475bea1d7034b30a94063445765538e name: 'Network Transmissions' graph_items: - color: 1A7C11 item: host: 'App bcmstat' key: rxbps - sortorder: '1' color: F63100 item: host: 'App bcmstat' key: txbps - uuid: 78bef787c84943389280ca93f9104535 name: Speed graph_items: - color: 4000FF item: host: 'App bcmstat' key: CPUMHz - sortorder: '1' color: 00FF00 item: host: 'App bcmstat' key: GPUMhz - sortorder: '2' color: '666699' item: host: 'App bcmstat' key: H264Mhz