zabbix_export: version: '5.4' date: '2021-11-21T22:04:09Z' groups: - uuid: e5be8e009c61477ca38b16ae08352a19 name: 自宅ラックテンプレート templates: - uuid: 99041a2603aa4dc6abbae31f9f2976a5 template: ASUS-Router name: ASUS-ルーター(RT-AC87U) description: | ## Description ASUSルーター ## Overview SSHエージェントによりASUS-RT-AC87UのCPU使用率を取得するテンプレートです。 依存アイテムを利用する事により少ない負荷でCPU使用率を可視化します。 ![](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/102020/e9df31db-0a99-79b5-3540-683dd017bc66.png) ![](https://qiita-image-store.s3.ap-northeast-1.amazonaws.com/0/102020/7088100c-ea7d-774c-0e59-f4d6a7713971.png) groups: - name: 自宅ラックテンプレート items: - uuid: 3cda1836157b4ba49e553f74421ebd1a name: CPU(idle) type: DEPENDENT key: cpu.idle delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% idle' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: f1554c5177e341848756f2957acef3c9 name: CPU(io) type: DEPENDENT key: cpu.io delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% io' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: fe7884bfe08a4b49a3b6b5c8a9c75582 name: CPU(irq) type: DEPENDENT key: cpu.irq delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% irq' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: d59c5458917a403398f6a52e5967a686 name: CPU(nic) type: DEPENDENT key: cpu.nic delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% nic' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: 93aaf71c057a4524a512cca4832af934 name: CPU(sirq) type: DEPENDENT key: cpu.sirq delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% sirq' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: 6e4f86b1229944c78a68ccd849dc7a3c name: CPU(sys) type: DEPENDENT key: cpu.sys delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% sys' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: 0ff6fd7f464d44d6a1ed35b6b2968785 name: CPU(usr) type: DEPENDENT key: cpu.usr delay: '0' value_type: FLOAT units: '%' preprocessing: - type: REGEX parameters: - '\d+(?:\.\d+)?% usr' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 master_item: key: 'ssh.run[top]' tags: - tag: Application value: Resource - uuid: 5a29133c564c42789114a75c7d9eff76 name: 'google ping' type: SSH key: 'ssh.run[ping_to_google]' delay: 10s value_type: FLOAT units: s params: 'ping google.com -c1' username: '{$SSH_USER}' password: '{$SSH_PASS}' preprocessing: - type: REGEX parameters: - 'time=\d+(?:\.\d+)?' - \0 - type: REGEX parameters: - '\d+(?:\.\d+)?' - \0 - type: MULTIPLIER parameters: - '0.001' tags: - tag: Application value: Network - uuid: 2739571323fe425e868e468217509f2a name: top type: SSH key: 'ssh.run[top]' delay: 10s history: '0' trends: '0' value_type: TEXT params: 'top -b -n1' username: '{$SSH_USER}' password: '{$SSH_PASS}' preprocessing: - type: REGEX parameters: - 'CPU:.*' - \0 tags: - tag: Application value: Resource macros: - macro: '{$SSH_PASS}' type: SECRET_TEXT - macro: '{$SSH_USER}' graphs: - uuid: 20a75305936f4401a494ca071276e56d name: 'CPU utilization %' type: STACKED graph_items: - color: 8BC34A item: host: ASUS-Router key: cpu.idle - sortorder: '1' color: EF5350 item: host: ASUS-Router key: cpu.io - sortorder: '2' color: 90CAF9 item: host: ASUS-Router key: cpu.irq - sortorder: '3' color: BCAAA4 item: host: ASUS-Router key: cpu.nic - sortorder: '4' color: F48FB1 item: host: ASUS-Router key: cpu.sirq - sortorder: '5' color: CE93D8 item: host: ASUS-Router key: cpu.sys - sortorder: '6' color: FFE082 item: host: ASUS-Router key: cpu.usr