ネットワーク監視のため、pingで対象機器の応答時間とNG個数、NG割合を測定します。 python3-rrdtoolを使う方法もあるようなのですが、ここでは原始的にsubprocessを使います。 主なハードウェア Raspberry Pi 主なソフトウェア Raspberry Pi OS Buster Python RRDtool RRDtoolインストール RRDtoolをインストールします。 apt install rrdtool RRDtoolデータベース作成 RRDtoolデータベースを作成します。 応答時間 rrdtool create /home/user/rrdtool/pi…