zabbix_export: version: '6.0' date: '2021-11-21T21:44:54Z' groups: - uuid: 7df96b18c230490a9a0a9e2307226338 name: Templates templates: - uuid: e967716f2f8c4111b641d8e314edeeae template: NatureRemo name: NatureRemo description: | ## Overview Automatically detects Nature Remo with LLD and generates temperature / humidity / illuminance items. Please put the access token obtained at https://home.nature.global in the host macro {$REMO\_BEARER}. You can download userparameter\_natureremo.conf and remo-json.sh from the links below. In remo-json.sh, place it in /usr/local/bin (or rewrite the path in userparameter) with permission to execute the zabbix-agent execution user. ZabbixのLLDでNatureRemoを検出して、温湿度と照度を取得します。 ---------------------------------------- userparameterで/usr/local/bin/remo-json.shを参照してるので、そのパスに置くか書き換えること。 ------------------------------------------------------------------ remo-json.shはZabbix-agent実行ユーザーに実行権限を付けること。 ------------------------------------------- ## Author nakaring groups: - name: Templates discovery_rules: - uuid: be99e4d9339f464c81dc32061260c22f name: 'NatureRemo Discovery' type: ZABBIX_ACTIVE key: 'natureremo.discovery[{$REMO_BEARER}]' delay: 10m item_prototypes: - uuid: 92c66743de2d43f2a81ee6492eda74b2 name: '{#REMONAME} 湿度' key: 'natureremo.humi[{#REMONAME}]' delay: 30s units: '%' tags: - tag: Application value: natureremo - uuid: ef7b249d951a46088e971de5282773a9 name: '{#REMONAME} 照度' key: 'natureremo.illumi[{#REMONAME}]' delay: 30s value_type: FLOAT units: lx tags: - tag: Application value: natureremo - uuid: 8450052d6a754f3db6363017c0ca5db3 name: '{#REMONAME} 室温' key: 'natureremo.temp[{#REMONAME}]' delay: 30s value_type: FLOAT units: ℃ tags: - tag: Application value: natureremo graph_prototypes: - uuid: 3854b2f150794e21a4f5c82656731150 name: '{#REMONAME} 室内環境' width: '400' graph_items: - color: 1A7C11 item: host: NatureRemo key: 'natureremo.humi[{#REMONAME}]' - sortorder: '1' color: 2774A4 item: host: NatureRemo key: 'natureremo.temp[{#REMONAME}]' - sortorder: '2' drawtype: GRADIENT_LINE color: F63100 yaxisside: RIGHT item: host: NatureRemo key: 'natureremo.illumi[{#REMONAME}]' macros: - macro: '{$REMO_BEARER}' value: empty