Armbianでシステム監視

Armbianでシステム監視

昨日"Banana Pi"に導入したArmbianには、Raspbian用のシステムモニターツール"RPi-Monitor"が移植されているので、それを使います。

手軽にサーバ監視できるOSSとしては、他に「Monitorix」や「Munin」といったものがあります。
もちろん、用途に応じて選択するのがベストですが、導入障壁がとても低い"armbianmonitor"を最初に導入するのも良いのでは無いでしょうか。
簡単に温度確認もできるため、特に夏場などは便利だと思います。

目次

armbianmonitorの説明

# armbianmonitor
Usage: armbianmonitor [-h] [-b] [-c $path] [-d $device] [-D] [-m] [-p] [-r] [-u]

############################################################################

 Use armbianmonitor for the following tasks:

 armbianmonitor -c /path/to/test performs disk health/performance tests
 armbianmonitor -d monitors writes to $device
 armbianmonitor -D tries to upload debug disk info to improve armbianmonitor
 armbianmonitor -m provides simple CLI monitoring
 armbianmonitor -p tries to install cpuminer for performance measurements
 armbianmonitor -r tries to install RPi-Monitor
 armbianmonitor -u tries to upload armhwinfo.log for support purposes

armbianmonitorの導入

# armbianmonitor -r
Extracting templates from packages: 100% to 5 minutes. Be patient please
Preconfiguring packages ...
Selecting previously unselected package libpng12-0:armhf.
(Reading database ... 43410 files and directories currently installed.)
Preparing to unpack .../libpng12-0_1.2.50-2+deb8u3_armhf.deb ...
Unpacking libpng12-0:armhf (1.2.50-2+deb8u3) ...
Selecting previously unselected package libfreetype6:armhf.
Preparing to unpack .../libfreetype6_2.5.2-3+deb8u2_armhf.deb ...
Unpacking libfreetype6:armhf (2.5.2-3+deb8u2) ...
Selecting previously unselected package fonts-dejavu-core.
Preparing to unpack .../fonts-dejavu-core_2.34-1_all.deb ...
Unpacking fonts-dejavu-core (2.34-1) ...
Selecting previously unselected package fontconfig-config.
Preparing to unpack .../fontconfig-config_2.11.0-6.3+deb8u1_all.deb ...
Unpacking fontconfig-config (2.11.0-6.3+deb8u1) ...
Selecting previously unselected package libfontconfig1:armhf.
Preparing to unpack .../libfontconfig1_2.11.0-6.3+deb8u1_armhf.deb ...
Unpacking libfontconfig1:armhf (2.11.0-6.3+deb8u1) ...
Selecting previously unselected package fontconfig.
Preparing to unpack .../fontconfig_2.11.0-6.3+deb8u1_armhf.deb ...
Unpacking fontconfig (2.11.0-6.3+deb8u1) ...
Selecting previously unselected package libpixman-1-0:armhf.
Preparing to unpack .../libpixman-1-0_0.32.6-3_armhf.deb ...
Unpacking libpixman-1-0:armhf (0.32.6-3) ...
Selecting previously unselected package libxau6:armhf.
Preparing to unpack .../libxau6_1%3a1.0.8-1_armhf.deb ...
Unpacking libxau6:armhf (1:1.0.8-1) ...
Selecting previously unselected package libxdmcp6:armhf.
Preparing to unpack .../libxdmcp6_1%3a1.1.1-1+b1_armhf.deb ...
Unpacking libxdmcp6:armhf (1:1.1.1-1+b1) ...
Selecting previously unselected package libxcb1:armhf.
Preparing to unpack .../libxcb1_1.10-3+b1_armhf.deb ...
Unpacking libxcb1:armhf (1.10-3+b1) ...
Selecting previously unselected package libx11-data.
Preparing to unpack .../libx11-data_2%3a1.6.2-3_all.deb ...
Unpacking libx11-data (2:1.6.2-3) ...
Selecting previously unselected package libx11-6:armhf.
Preparing to unpack .../libx11-6_2%3a1.6.2-3_armhf.deb ...
Unpacking libx11-6:armhf (2:1.6.2-3) ...
Selecting previously unselected package libxcb-render0:armhf.
Preparing to unpack .../libxcb-render0_1.10-3+b1_armhf.deb ...
Unpacking libxcb-render0:armhf (1.10-3+b1) ...
Selecting previously unselected package libxcb-shm0:armhf.
Preparing to unpack .../libxcb-shm0_1.10-3+b1_armhf.deb ...
Unpacking libxcb-shm0:armhf (1.10-3+b1) ...
Selecting previously unselected package libxext6:armhf.
Preparing to unpack .../libxext6_2%3a1.3.3-1_armhf.deb ...
Unpacking libxext6:armhf (2:1.3.3-1) ...
Selecting previously unselected package libxrender1:armhf.
Preparing to unpack .../libxrender1_1%3a0.9.8-1+b1_armhf.deb ...
Unpacking libxrender1:armhf (1:0.9.8-1+b1) ...
Selecting previously unselected package libcairo2:armhf.
Preparing to unpack .../libcairo2_1.14.0-2.1+deb8u2_armhf.deb ...
Unpacking libcairo2:armhf (1.14.0-2.1+deb8u2) ...
Selecting previously unselected package libdatrie1:armhf.
Preparing to unpack .../libdatrie1_0.2.8-1_armhf.deb ...
Unpacking libdatrie1:armhf (0.2.8-1) ...
Selecting previously unselected package libgraphite2-3:armhf.
Preparing to unpack .../libgraphite2-3_1.3.10-1~deb8u1_armhf.deb ...
Unpacking libgraphite2-3:armhf (1.3.10-1~deb8u1) ...
Selecting previously unselected package libharfbuzz0b:armhf.
Preparing to unpack .../libharfbuzz0b_0.9.35-2_armhf.deb ...
Unpacking libharfbuzz0b:armhf (0.9.35-2) ...
Selecting previously unselected package libthai-data.
Preparing to unpack .../libthai-data_0.1.21-1_all.deb ...
Unpacking libthai-data (0.1.21-1) ...
Selecting previously unselected package libthai0:armhf.
Preparing to unpack .../libthai0_0.1.21-1_armhf.deb ...
Unpacking libthai0:armhf (0.1.21-1) ...
Selecting previously unselected package libpango-1.0-0:armhf.
Preparing to unpack .../libpango-1.0-0_1.36.8-3_armhf.deb ...
Unpacking libpango-1.0-0:armhf (1.36.8-3) ...
Selecting previously unselected package libpangoft2-1.0-0:armhf.
Preparing to unpack .../libpangoft2-1.0-0_1.36.8-3_armhf.deb ...
Unpacking libpangoft2-1.0-0:armhf (1.36.8-3) ...
Selecting previously unselected package libpangocairo-1.0-0:armhf.
Preparing to unpack .../libpangocairo-1.0-0_1.36.8-3_armhf.deb ...
Unpacking libpangocairo-1.0-0:armhf (1.36.8-3) ...
Selecting previously unselected package libdbi1:armhf.
Preparing to unpack .../libdbi1_0.9.0-4_armhf.deb ...
Unpacking libdbi1:armhf (0.9.0-4) ...
Selecting previously unselected package libencode-locale-perl.
Preparing to unpack .../libencode-locale-perl_1.03-1_all.deb ...
Unpacking libencode-locale-perl (1.03-1) ...
Selecting previously unselected package libfile-which-perl.
Preparing to unpack .../libfile-which-perl_1.09-1_all.deb ...
Unpacking libfile-which-perl (1.09-1) ...
Selecting previously unselected package libhttp-date-perl.
Preparing to unpack .../libhttp-date-perl_6.02-1_all.deb ...
Unpacking libhttp-date-perl (6.02-1) ...
Selecting previously unselected package libio-html-perl.
Preparing to unpack .../libio-html-perl_1.001-1_all.deb ...
Unpacking libio-html-perl (1.001-1) ...
Selecting previously unselected package liblwp-mediatypes-perl.
Preparing to unpack .../liblwp-mediatypes-perl_6.02-1_all.deb ...
Unpacking liblwp-mediatypes-perl (6.02-1) ...
Selecting previously unselected package liburi-perl.
Preparing to unpack .../liburi-perl_1.64-1_all.deb ...
Unpacking liburi-perl (1.64-1) ...
Selecting previously unselected package libhttp-message-perl.
Preparing to unpack .../libhttp-message-perl_6.06-1_all.deb ...
Unpacking libhttp-message-perl (6.06-1) ...
Selecting previously unselected package libhttp-daemon-perl.
Preparing to unpack .../libhttp-daemon-perl_6.01-1_all.deb ...
Unpacking libhttp-daemon-perl (6.01-1) ...
Selecting previously unselected package libipc-sharelite-perl.
Preparing to unpack .../libipc-sharelite-perl_0.17-3+b2_armhf.deb ...
Unpacking libipc-sharelite-perl (0.17-3+b2) ...
Selecting previously unselected package libjson-perl.
Preparing to unpack .../libjson-perl_2.61-1_all.deb ...
Unpacking libjson-perl (2.61-1) ...
Selecting previously unselected package librrd4.
Preparing to unpack .../librrd4_1.4.8-1.2_armhf.deb ...
Unpacking librrd4 (1.4.8-1.2) ...
Selecting previously unselected package librrds-perl.
Preparing to unpack .../librrds-perl_1.4.8-1.2_armhf.deb ...
Unpacking librrds-perl (1.4.8-1.2) ...
Selecting previously unselected package rpimonitor.
Preparing to unpack .../rpimonitor_2.10-1_all.deb ...
Unpacking rpimonitor (2.10-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Processing triggers for systemd (215-17+deb8u7) ...
Setting up libpng12-0:armhf (1.2.50-2+deb8u3) ...
Setting up libfreetype6:armhf (2.5.2-3+deb8u2) ...
Setting up fonts-dejavu-core (2.34-1) ...
Setting up fontconfig-config (2.11.0-6.3+deb8u1) ...
Setting up libfontconfig1:armhf (2.11.0-6.3+deb8u1) ...
Setting up fontconfig (2.11.0-6.3+deb8u1) ...
Regenerating fonts cache... done.
Setting up libpixman-1-0:armhf (0.32.6-3) ...
Setting up libxau6:armhf (1:1.0.8-1) ...
Setting up libxdmcp6:armhf (1:1.1.1-1+b1) ...
Setting up libxcb1:armhf (1.10-3+b1) ...
Setting up libx11-data (2:1.6.2-3) ...
Setting up libx11-6:armhf (2:1.6.2-3) ...
Setting up libxcb-render0:armhf (1.10-3+b1) ...
Setting up libxcb-shm0:armhf (1.10-3+b1) ...
Setting up libxext6:armhf (2:1.3.3-1) ...
Setting up libxrender1:armhf (1:0.9.8-1+b1) ...
Setting up libcairo2:armhf (1.14.0-2.1+deb8u2) ...
Setting up libdatrie1:armhf (0.2.8-1) ...
Setting up libgraphite2-3:armhf (1.3.10-1~deb8u1) ...
Setting up libharfbuzz0b:armhf (0.9.35-2) ...
Setting up libthai-data (0.1.21-1) ...
Setting up libthai0:armhf (0.1.21-1) ...
Setting up libpango-1.0-0:armhf (1.36.8-3) ...
Setting up libpangoft2-1.0-0:armhf (1.36.8-3) ...
Setting up libpangocairo-1.0-0:armhf (1.36.8-3) ...
Setting up libdbi1:armhf (0.9.0-4) ...
Setting up libencode-locale-perl (1.03-1) ...
Setting up libfile-which-perl (1.09-1) ...
Setting up libhttp-date-perl (6.02-1) ...
Setting up libio-html-perl (1.001-1) ...
Setting up liblwp-mediatypes-perl (6.02-1) ...
Setting up liburi-perl (1.64-1) ...
Setting up libhttp-message-perl (6.06-1) ...
Setting up libhttp-daemon-perl (6.01-1) ...
Setting up libipc-sharelite-perl (0.17-3+b2) ...
Setting up libjson-perl (2.61-1) ...
Setting up librrd4 (1.4.8-1.2) ...
Setting up librrds-perl (1.4.8-1.2) ...
Setting up rpimonitor (2.10-1) ...
[ ok ] Starting rpimonitor (via systemctl): rpimonitor.service.
Processing triggers for libc-bin (2.19-18+deb8u10) ...

Now you're able to enjoy RPi-Monitor at http://192.168.x.xxx:8888

armbianmonitorサンプル

CUI

# armbianmonitor -m
Stop monitoring using [ctrl]-[c]
Time        CPU    load %cpu %sys %usr %nice %io %irq   CPU   PMIC
06:31:49:  528MHz  0.00  12%   2%   4%   0%   4%   0% 34.8°C 39.2°C
06:31:54:  528MHz  0.00  12%   2%   4%   0%   4%   0% 34.9°C 39.3°C
06:32:00:  528MHz  0.00  12%   2%   4%   0%   4%   0% 34.9°C 39.2°C

GUI (ポート番号:8888)

armbianmonitorScreenShot

コメントを残す