Skip to content

sugtao4423/BrouteZabbix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BrouteZabbix

Bルートから電力使用量を取得してZabbixへ送信

Usage

option description default
-device RL7023 device /dev/ttyUSB0
-bId BルートID
-bPass Bルートパスワード
-checkInterval 定期チェック間隔(秒) 60
-zabbixServerHost ZabbixServerホスト localhost:10051
-zbxItemHostname ZabbixHostname
-zbxItemKey ZabbixHostKey

Build

For Raspberry Pi 3

GOOS=linux GOARCH=arm GOARM=7 go build

systemd

# /etc/systemd/system/BrouteZabbix.service
[Unit]
After=network.target

[Service]
Type=simple
ExecStart=/path/to/BrouteZabbix \
            -bId BROUTE_ID \
            -bPass BROUTE_PASS \
            -zabbixServerHost ZABBIX_SERVER:10051 \
            -zbxItemHostname ZABBIX_ITEM_HOSTNAME \
            -zbxItemKey ZABBIX_ITEM_KEY
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Refs

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages