FreeBSD 12.1 に Munin を導入する事にしました。
また、導入時の内容をメモ書きする事にします。

1.Munin 導入

①.munin をインストールする。

pkg install munin-node munin-master

②.インストールした時の情報です。

[root@FreeBSD ]# pkg install munin-node munin-master
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
The following 97 package(s) will be affected (of 0 checked):

New packages to be INSTALLED:
        munin-common: 2.0.59
        munin-master: 2.0.59
        munin-node: 2.0.59_1
        p5-Algorithm-C3: 0.10_1
        p5-Authen-NTLM: 1.09_1
        p5-B-Hooks-EndOfScope: 0.24
        p5-CGI: 4.46
        p5-CGI-Fast: 2.15
        p5-Cache: 2.11
        p5-Cache-Cache: 1.08
        p5-Class-C3: 0.34
        p5-Class-Data-Inheritable: 0.08_1
        p5-Class-Inspector: 1.36
        p5-Class-Method-Modifiers: 2.13
        p5-Class-Singleton: 1.5_1
        p5-Crypt-CBC: 2.33_1
        p5-Crypt-DES: 2.07_1
        p5-DBD-Pg: 3.10.5
        p5-DBI: 1.643
        p5-Data-OptList: 0.110
        p5-Date-Manip: 6.81
        p5-DateTime: 1.52
        p5-DateTime-HiRes: 0.01_1
        p5-DateTime-Locale: 1.25
        p5-DateTime-TimeZone: 2.38,1
        p5-Devel-StackTrace: 2.04
        p5-Digest-HMAC: 1.03_1
        p5-Digest-SHA1: 2.13_1
        p5-Dist-CheckConflicts: 0.11_1
        p5-Encode-Locale: 1.05
        p5-Error: 0.17029
        p5-Eval-Closure: 0.14
        p5-Exception-Class: 1.44
        p5-Exporter-Tiny: 1.002001
        p5-FCGI: 0.79
        p5-File-Copy-Recursive: 0.45
        p5-File-Listing: 6.04_1
        p5-File-NFSLock: 1.29
        p5-File-ShareDir: 1.116
        p5-HTML-Parser: 3.72
        p5-HTML-Tagset: 3.20_1
        p5-HTML-Template: 2.95_1
        p5-HTTP-Cookies: 6.08
        p5-HTTP-Daemon: 6.06
        p5-HTTP-Date: 6.05
        p5-HTTP-Message: 6.22
        p5-HTTP-Negotiate: 6.01_1
        p5-Heap: 0.80_1
        p5-IO-HTML: 1.001_1
        p5-IO-Multiplex: 1.16
        p5-IO-Socket-INET6: 2.72_1
        p5-IO-Socket-SSL: 2.067
        p5-IO-String: 1.08_1
        p5-IPC-ShareLite: 0.17_1
        p5-LWP-MediaTypes: 6.04
        p5-List-MoreUtils: 0.428
        p5-List-MoreUtils-XS: 0.428
        p5-Log-Log4perl: 1.49
        p5-MRO-Compat: 0.13
        p5-Module-Implementation: 0.09_1
        p5-Module-Runtime: 0.016
        p5-Mozilla-CA: 20180117
        p5-Net-CIDR: 0.20
        p5-Net-DNS: 1.23,1
        p5-Net-HTTP: 6.19
        p5-Net-IP: 1.26_1
        p5-Net-SNMP: 6.0.1_1
        p5-Net-SSLeay: 1.88
        p5-Net-Server: 2.009
        p5-Package-Stash: 0.38
        p5-Package-Stash-XS: 0.29
        p5-Params-Util: 1.07_2
        p5-Params-Validate: 1.29
        p5-Params-ValidationCompiler: 0.30_1
        p5-Role-Tiny: 2.001004
        p5-Socket6: 0.29
        p5-Specio: 0.46
        p5-Sub-Exporter: 0.987_1
        p5-Sub-Exporter-Progressive: 0.001013
        p5-Sub-Identify: 0.14
        p5-Sub-Install: 0.928_1
        p5-Sub-Quote: 2.006006
        p5-TimeDate: 2.30_2,1
        p5-Try-Tiny: 0.30
        p5-URI: 1.76
        p5-Variable-Magic: 0.62
        p5-WWW-RobotRules: 6.02_1
        p5-XML-LibXML: 2.0204,1
        p5-XML-NamespaceSupport: 1.12
        p5-XML-Parser: 2.44
        p5-XML-SAX: 1.02
        p5-XML-SAX-Base: 1.09
        p5-libwww: 6.43
        p5-namespace-autoclean: 0.29
        p5-namespace-clean: 0.27
        postgresql11-client: 11.7
        rrdtool: 1.7.2_2

Number of packages to be installed: 97

The process will require 66 MiB more space.
12 MiB to be downloaded.

Proceed with this action? [y/N]: y
[1/97] Fetching munin-node-2.0.59_1.txz: 100%  290 KiB 297.0kB/s    00:01
[2/97] Fetching munin-master-2.0.59.txz: 100%  534 KiB 547.1kB/s    00:01
[3/97] Fetching p5-libwww-6.43.txz: 100%  147 KiB 150.9kB/s    00:01
[4/97] Fetching p5-WWW-RobotRules-6.02_1.txz: 100%   13 KiB  13.3kB/s    00:01
[5/97] Fetching p5-URI-1.76.txz: 100%   76 KiB  78.3kB/s    00:01
[6/97] Fetching p5-LWP-MediaTypes-6.04.txz: 100%   20 KiB  20.1kB/s    00:01
[7/97] Fetching p5-HTTP-Negotiate-6.01_1.txz: 100%   13 KiB  13.2kB/s    00:01
[8/97] Fetching p5-HTTP-Message-6.22.txz: 100%   78 KiB  80.0kB/s    00:01
[9/97] Fetching p5-HTTP-Date-6.05.txz: 100%   10 KiB  10.6kB/s    00:01
[10/97] Fetching p5-TimeDate-2.30_2,1.txz: 100%   33 KiB  33.8kB/s    00:01
[11/97] Fetching p5-IO-HTML-1.001_1.txz: 100%   14 KiB  14.5kB/s    00:01
[12/97] Fetching p5-Encode-Locale-1.05.txz: 100%   12 KiB  11.9kB/s    00:01
[13/97] Fetching p5-HTTP-Daemon-6.06.txz: 100%   22 KiB  22.8kB/s    00:01
[14/97] Fetching p5-HTTP-Cookies-6.08.txz: 100%   26 KiB  26.7kB/s    00:01
[15/97] Fetching p5-HTML-Parser-3.72.txz: 100%   79 KiB  81.3kB/s    00:01
[16/97] Fetching p5-HTML-Tagset-3.20_1.txz: 100%   12 KiB  12.0kB/s    00:01
[17/97] Fetching p5-File-Listing-6.04_1.txz: 100%    9 KiB   9.4kB/s    00:01
[18/97] Fetching p5-Authen-NTLM-1.09_1.txz: 100%   13 KiB  13.8kB/s    00:01
[19/97] Fetching p5-Digest-HMAC-1.03_1.txz: 100%   10 KiB  10.1kB/s    00:01
[20/97] Fetching p5-Net-HTTP-6.19.txz: 100%   27 KiB  27.8kB/s    00:01
[21/97] Fetching p5-IO-Socket-SSL-2.067.txz: 100%  168 KiB 171.7kB/s    00:01
[22/97] Fetching p5-Mozilla-CA-20180117.txz: 100%  132 KiB 135.3kB/s    00:01
[23/97] Fetching p5-Net-SSLeay-1.88.txz: 100%  267 KiB 273.3kB/s    00:01
[24/97] Fetching p5-IO-Socket-INET6-2.72_1.txz: 100%   13 KiB  13.1kB/s    00:01
[25/97] Fetching p5-Socket6-0.29.txz: 100%   16 KiB  16.7kB/s    00:01
[26/97] Fetching p5-Try-Tiny-0.30.txz: 100%   17 KiB  17.3kB/s    00:01
[27/97] Fetching p5-XML-Parser-2.44.txz: 100%  146 KiB 149.3kB/s    00:01
[28/97] Fetching p5-XML-LibXML-2.0204,1.txz: 100%  299 KiB 305.9kB/s    00:01
[29/97] Fetching p5-XML-SAX-1.02.txz: 100%   45 KiB  46.4kB/s    00:01
[30/97] Fetching p5-XML-SAX-Base-1.09.txz: 100%   24 KiB  25.0kB/s    00:01
[31/97] Fetching p5-XML-NamespaceSupport-1.12.txz: 100%   16 KiB  16.5kB/s    00:01
[32/97] Fetching munin-common-2.0.59.txz: 100%   31 KiB  32.3kB/s    00:01
[33/97] Fetching p5-Net-Server-2.009.txz: 100%  159 KiB 162.8kB/s    00:01
[34/97] Fetching p5-IO-Multiplex-1.16.txz: 100%   17 KiB  17.6kB/s    00:01
[35/97] Fetching p5-Net-SNMP-6.0.1_1.txz: 100%   82 KiB  83.9kB/s    00:01
[36/97] Fetching p5-Digest-SHA1-2.13_1.txz: 100%   18 KiB  18.3kB/s    00:01
[37/97] Fetching p5-Crypt-DES-2.07_1.txz: 100%   11 KiB  11.6kB/s    00:01
[38/97] Fetching p5-Crypt-CBC-2.33_1.txz: 100%   22 KiB  22.2kB/s    00:01
[39/97] Fetching p5-Net-IP-1.26_1.txz: 100%   26 KiB  27.0kB/s    00:01
[40/97] Fetching p5-Net-CIDR-0.20.txz: 100%   12 KiB  12.1kB/s    00:01
[41/97] Fetching p5-List-MoreUtils-0.428.txz: 100%   38 KiB  38.9kB/s    00:01
[42/97] Fetching p5-List-MoreUtils-XS-0.428.txz: 100%   34 KiB  35.0kB/s    00:01
[43/97] Fetching p5-Exporter-Tiny-1.002001.txz: 100%   37 KiB  38.2kB/s    00:01
[44/97] Fetching p5-Net-DNS-1.23,1.txz: 100%  308 KiB 315.4kB/s    00:01
[45/97] Fetching p5-Log-Log4perl-1.49.txz: 100%  332 KiB 339.5kB/s    00:01
[46/97] Fetching p5-DateTime-HiRes-0.01_1.txz: 100%    4 KiB   4.3kB/s    00:01
[47/97] Fetching p5-DateTime-1.52.txz: 100%   86 KiB  87.8kB/s    00:01
[48/97] Fetching p5-namespace-autoclean-0.29.txz: 100%   10 KiB  10.3kB/s    00:01
[49/97] Fetching p5-namespace-clean-0.27.txz: 100%   13 KiB  13.3kB/s    00:01
[50/97] Fetching p5-Package-Stash-0.38.txz: 100%   19 KiB  19.3kB/s    00:01
[51/97] Fetching p5-Package-Stash-XS-0.29.txz: 100%   16 KiB  16.4kB/s    00:01
[52/97] Fetching p5-Module-Implementation-0.09_1.txz: 100%   10 KiB   9.9kB/s    00:01
[53/97] Fetching p5-Module-Runtime-0.016.txz: 100%   16 KiB  16.2kB/s    00:01
[54/97] Fetching p5-Dist-CheckConflicts-0.11_1.txz: 100%   10 KiB  10.1kB/s    00:01
[55/97] Fetching p5-B-Hooks-EndOfScope-0.24.txz: 100%   18 KiB  18.7kB/s    00:01
[56/97] Fetching p5-Variable-Magic-0.62.txz: 100%   32 KiB  32.6kB/s    00:01
[57/97] Fetching p5-Sub-Exporter-Progressive-0.001013.txz: 100%   11 KiB  11.4kB/s    00:01
[58/97] Fetching p5-Sub-Exporter-0.987_1.txz: 100%   43 KiB  44.4kB/s    00:01
[59/97] Fetching p5-Sub-Install-0.928_1.txz: 100%   10 KiB   9.8kB/s    00:01
[60/97] Fetching p5-Params-Util-1.07_2.txz: 100%   24 KiB  24.3kB/s    00:01
[61/97] Fetching p5-Data-OptList-0.110.txz: 100%   13 KiB  13.7kB/s    00:01
[62/97] Fetching p5-Sub-Identify-0.14.txz: 100%   10 KiB  10.1kB/s    00:01
[63/97] Fetching p5-Specio-0.46.txz: 100%  130 KiB 133.0kB/s    00:01
[64/97] Fetching p5-Sub-Quote-2.006006.txz: 100%   20 KiB  20.3kB/s    00:01
[65/97] Fetching p5-Role-Tiny-2.001004.txz: 100%   20 KiB  20.2kB/s    00:01
[66/97] Fetching p5-Class-Method-Modifiers-2.13.txz: 100%   18 KiB  18.6kB/s    00:01
[67/97] Fetching p5-MRO-Compat-0.13.txz: 100%   10 KiB  10.7kB/s    00:01
[68/97] Fetching p5-Class-C3-0.34.txz: 100%   18 KiB  18.8kB/s    00:01
[69/97] Fetching p5-Algorithm-C3-0.10_1.txz: 100%   10 KiB  10.7kB/s    00:01
[70/97] Fetching p5-Eval-Closure-0.14.txz: 100%   10 KiB  10.7kB/s    00:01
[71/97] Fetching p5-Devel-StackTrace-2.04.txz: 100%   18 KiB  18.3kB/s    00:01
[72/97] Fetching p5-Params-ValidationCompiler-0.30_1.txz: 100%   21 KiB  21.7kB/s    00:01
[73/97] Fetching p5-Exception-Class-1.44.txz: 100%   27 KiB  27.8kB/s    00:01
[74/97] Fetching p5-Class-Data-Inheritable-0.08_1.txz: 100%    8 KiB   7.9kB/s    00:01   
[75/97] Fetching p5-Params-Validate-1.29.txz: 100%   45 KiB  46.0kB/s    00:01
[76/97] Fetching p5-DateTime-TimeZone-2.38,1.txz: 100%  257 KiB 263.1kB/s    00:01
[77/97] Fetching p5-Class-Singleton-1.5_1.txz: 100%   12 KiB  12.2kB/s    00:01
[78/97] Fetching p5-DateTime-Locale-1.25.txz: 100%    2 MiB   2.4MB/s    00:01
[79/97] Fetching p5-File-ShareDir-1.116.txz: 100%   18 KiB  18.2kB/s    00:01
[80/97] Fetching p5-Class-Inspector-1.36.txz: 100%   19 KiB  19.4kB/s    00:01
[81/97] Fetching p5-Cache-Cache-1.08.txz: 100%   58 KiB  59.5kB/s    00:01
[82/97] Fetching p5-Error-0.17029.txz: 100%   27 KiB  27.3kB/s    00:01
[83/97] Fetching p5-IPC-ShareLite-0.17_1.txz: 100%   22 KiB  22.3kB/s    00:01
[84/97] Fetching p5-Cache-2.11.txz: 100%   67 KiB  68.9kB/s    00:01
[85/97] Fetching p5-IO-String-1.08_1.txz: 100%   10 KiB  10.3kB/s    00:01
[86/97] Fetching p5-Heap-0.80_1.txz: 100%   33 KiB  33.7kB/s    00:01
[87/97] Fetching p5-File-NFSLock-1.29.txz: 100%   15 KiB  15.6kB/s    00:01
[88/97] Fetching p5-DBD-Pg-3.10.5.txz: 100%  172 KiB 176.4kB/s    00:01
[89/97] Fetching postgresql11-client-11.7.txz: 100%    3 MiB   2.7MB/s    00:01
[90/97] Fetching p5-DBI-1.643.txz: 100%  705 KiB 722.3kB/s    00:01
[91/97] Fetching p5-HTML-Template-2.95_1.txz: 100%   59 KiB  60.3kB/s    00:01
[92/97] Fetching p5-FCGI-0.79.txz: 100%   29 KiB  29.8kB/s    00:01
[93/97] Fetching p5-CGI-Fast-2.15.txz: 100%   11 KiB  11.0kB/s    00:01
[94/97] Fetching p5-CGI-4.46.txz: 100%  154 KiB 158.2kB/s    00:01
[95/97] Fetching p5-File-Copy-Recursive-0.45.txz: 100%   17 KiB  17.1kB/s    00:01
[96/97] Fetching p5-Date-Manip-6.81.txz: 100%  899 KiB 920.8kB/s    00:01
[97/97] Fetching rrdtool-1.7.2_2.txz: 100%  695 KiB 711.4kB/s    00:01
Checking integrity... done (0 conflicting)
[1/97] Installing p5-Sub-Install-0.928_1...
[1/97] Extracting p5-Sub-Install-0.928_1: 100%
[2/97] Installing p5-Params-Util-1.07_2...
[2/97] Extracting p5-Params-Util-1.07_2: 100%
[3/97] Installing p5-Data-OptList-0.110...
[3/97] Extracting p5-Data-OptList-0.110: 100%
[4/97] Installing p5-Try-Tiny-0.30...
[4/97] Extracting p5-Try-Tiny-0.30: 100%
[5/97] Installing p5-Module-Runtime-0.016...
[5/97] Extracting p5-Module-Runtime-0.016: 100%
[6/97] Installing p5-Sub-Exporter-0.987_1...
[6/97] Extracting p5-Sub-Exporter-0.987_1: 100%
[7/97] Installing p5-Package-Stash-XS-0.29...
[7/97] Extracting p5-Package-Stash-XS-0.29: 100%
[8/97] Installing p5-Module-Implementation-0.09_1...
[8/97] Extracting p5-Module-Implementation-0.09_1: 100%
[9/97] Installing p5-Dist-CheckConflicts-0.11_1...
[9/97] Extracting p5-Dist-CheckConflicts-0.11_1: 100%
[10/97] Installing p5-Variable-Magic-0.62...
[10/97] Extracting p5-Variable-Magic-0.62: 100%
[11/97] Installing p5-Sub-Exporter-Progressive-0.001013...
[11/97] Extracting p5-Sub-Exporter-Progressive-0.001013: 100%
[12/97] Installing p5-Algorithm-C3-0.10_1...
[12/97] Extracting p5-Algorithm-C3-0.10_1: 100%
[13/97] Installing p5-Package-Stash-0.38...
[13/97] Extracting p5-Package-Stash-0.38: 100%
[14/97] Installing p5-B-Hooks-EndOfScope-0.24...
[14/97] Extracting p5-B-Hooks-EndOfScope-0.24: 100%
[15/97] Installing p5-Class-Method-Modifiers-2.13...
[15/97] Extracting p5-Class-Method-Modifiers-2.13: 100%
[16/97] Installing p5-Class-C3-0.34...
[16/97] Extracting p5-Class-C3-0.34: 100%
[17/97] Installing p5-Devel-StackTrace-2.04...
[17/97] Extracting p5-Devel-StackTrace-2.04: 100%
[18/97] Installing p5-Class-Data-Inheritable-0.08_1...
[18/97] Extracting p5-Class-Data-Inheritable-0.08_1: 100%
[19/97] Installing p5-TimeDate-2.30_2,1...
[19/97] Extracting p5-TimeDate-2.30_2,1: 100%
[20/97] Installing p5-Socket6-0.29...
[20/97] Extracting p5-Socket6-0.29: 100%
[21/97] Installing p5-namespace-clean-0.27...
[21/97] Extracting p5-namespace-clean-0.27: 100%
[22/97] Installing p5-Sub-Identify-0.14...
[22/97] Extracting p5-Sub-Identify-0.14: 100%
[23/97] Installing p5-Sub-Quote-2.006006...
[23/97] Extracting p5-Sub-Quote-2.006006: 100%
[24/97] Installing p5-Role-Tiny-2.001004...
[24/97] Extracting p5-Role-Tiny-2.001004: 100%
[25/97] Installing p5-MRO-Compat-0.13...
[25/97] Extracting p5-MRO-Compat-0.13: 100%
[26/97] Installing p5-Eval-Closure-0.14...
[26/97] Extracting p5-Eval-Closure-0.14: 100%
[27/97] Installing p5-Exception-Class-1.44...
[27/97] Extracting p5-Exception-Class-1.44: 100%
[28/97] Installing p5-Class-Inspector-1.36...
[28/97] Extracting p5-Class-Inspector-1.36: 100%
[29/97] Installing p5-URI-1.76...
[29/97] Extracting p5-URI-1.76: 100%
[30/97] Installing p5-LWP-MediaTypes-6.04...
[30/97] Extracting p5-LWP-MediaTypes-6.04: 100%
[31/97] Installing p5-HTTP-Date-6.05...
[31/97] Extracting p5-HTTP-Date-6.05: 100%
[32/97] Installing p5-IO-HTML-1.001_1...
[32/97] Extracting p5-IO-HTML-1.001_1: 100%
[33/97] Installing p5-Encode-Locale-1.05...
[33/97] Extracting p5-Encode-Locale-1.05: 100%
[34/97] Installing p5-HTML-Tagset-3.20_1...
[34/97] Extracting p5-HTML-Tagset-3.20_1: 100%
[35/97] Installing p5-Mozilla-CA-20180117...
[35/97] Extracting p5-Mozilla-CA-20180117: 100%
[36/97] Installing p5-Net-SSLeay-1.88...
[36/97] Extracting p5-Net-SSLeay-1.88: 100%
[37/97] Installing p5-IO-Socket-INET6-2.72_1...
[37/97] Extracting p5-IO-Socket-INET6-2.72_1: 100%
[38/97] Installing p5-namespace-autoclean-0.29...
[38/97] Extracting p5-namespace-autoclean-0.29: 100%
[39/97] Installing p5-Specio-0.46...
[39/97] Extracting p5-Specio-0.46: 100%
[40/97] Installing p5-Params-ValidationCompiler-0.30_1...
[40/97] Extracting p5-Params-ValidationCompiler-0.30_1: 100%
[41/97] Installing p5-Class-Singleton-1.5_1...
[41/97] Extracting p5-Class-Singleton-1.5_1: 100%
[42/97] Installing p5-File-ShareDir-1.116...
[42/97] Extracting p5-File-ShareDir-1.116: 100%
[43/97] Installing p5-HTTP-Message-6.22...
[43/97] Extracting p5-HTTP-Message-6.22: 100%
[44/97] Installing p5-HTML-Parser-3.72...
[44/97] Extracting p5-HTML-Parser-3.72: 100%
[45/97] Installing p5-Digest-HMAC-1.03_1...
[45/97] Extracting p5-Digest-HMAC-1.03_1: 100%
[46/97] Installing p5-IO-Socket-SSL-2.067...
[46/97] Extracting p5-IO-Socket-SSL-2.067: 100%
[47/97] Installing p5-XML-SAX-Base-1.09...
[47/97] Extracting p5-XML-SAX-Base-1.09: 100%
[48/97] Installing p5-XML-NamespaceSupport-1.12...
[48/97] Extracting p5-XML-NamespaceSupport-1.12: 100%
[49/97] Installing p5-Crypt-CBC-2.33_1...
[49/97] Extracting p5-Crypt-CBC-2.33_1: 100%
[50/97] Installing p5-Params-Validate-1.29...
[50/97] Extracting p5-Params-Validate-1.29: 100%
[51/97] Installing p5-DateTime-TimeZone-2.38,1...
[51/97] Extracting p5-DateTime-TimeZone-2.38,1: 100%
[52/97] Installing p5-DateTime-Locale-1.25...
[52/97] Extracting p5-DateTime-Locale-1.25: 100%
[53/97] Installing p5-IO-String-1.08_1...
[53/97] Extracting p5-IO-String-1.08_1: 100%
[54/97] Installing p5-Heap-0.80_1...
[54/97] Extracting p5-Heap-0.80_1: 100%
[55/97] Installing p5-File-NFSLock-1.29...
[55/97] Extracting p5-File-NFSLock-1.29: 100%
[56/97] Installing p5-WWW-RobotRules-6.02_1...
[56/97] Extracting p5-WWW-RobotRules-6.02_1: 100%
[57/97] Installing p5-HTTP-Negotiate-6.01_1...
[57/97] Extracting p5-HTTP-Negotiate-6.01_1: 100%
[58/97] Installing p5-HTTP-Daemon-6.06...
[58/97] Extracting p5-HTTP-Daemon-6.06: 100%
[59/97] Installing p5-HTTP-Cookies-6.08...
[59/97] Extracting p5-HTTP-Cookies-6.08: 100%
[60/97] Installing p5-File-Listing-6.04_1...
[60/97] Extracting p5-File-Listing-6.04_1: 100%
[61/97] Installing p5-Authen-NTLM-1.09_1...
[61/97] Extracting p5-Authen-NTLM-1.09_1: 100%
[62/97] Installing p5-Net-HTTP-6.19...
[62/97] Extracting p5-Net-HTTP-6.19: 100%
[63/97] Installing p5-XML-SAX-1.02...
[63/97] Extracting p5-XML-SAX-1.02: 100%
could not find ParserDetails.ini in /usr/local/lib/perl5/site_perl/XML/SAX
[64/97] Installing p5-IO-Multiplex-1.16...
[64/97] Extracting p5-IO-Multiplex-1.16: 100%
[65/97] Installing p5-Digest-SHA1-2.13_1...
[65/97] Extracting p5-Digest-SHA1-2.13_1: 100%
[66/97] Installing p5-Crypt-DES-2.07_1...
[66/97] Extracting p5-Crypt-DES-2.07_1: 100%
[67/97] Installing p5-List-MoreUtils-XS-0.428...
[67/97] Extracting p5-List-MoreUtils-XS-0.428: 100%
[68/97] Installing p5-Exporter-Tiny-1.002001...
[68/97] Extracting p5-Exporter-Tiny-1.002001: 100%
[69/97] Installing p5-DateTime-1.52...
[69/97] Extracting p5-DateTime-1.52: 100%
[70/97] Installing p5-Error-0.17029...
[70/97] Extracting p5-Error-0.17029: 100%
[71/97] Installing p5-IPC-ShareLite-0.17_1...
[71/97] Extracting p5-IPC-ShareLite-0.17_1: 100%
[72/97] Installing p5-Cache-2.11...
[72/97] Extracting p5-Cache-2.11: 100%
[73/97] Installing postgresql11-client-11.7...
[73/97] Extracting postgresql11-client-11.7: 100%
[74/97] Installing p5-DBI-1.643...
[74/97] Extracting p5-DBI-1.643: 100%
[75/97] Installing p5-FCGI-0.79...
[75/97] Extracting p5-FCGI-0.79: 100%
[76/97] Installing p5-CGI-4.46...
[76/97] Extracting p5-CGI-4.46: 100%
[77/97] Installing p5-libwww-6.43...
[77/97] Extracting p5-libwww-6.43: 100%
[78/97] Installing p5-XML-Parser-2.44...
[78/97] Extracting p5-XML-Parser-2.44: 100%
[79/97] Installing p5-XML-LibXML-2.0204,1...
[79/97] Extracting p5-XML-LibXML-2.0204,1: 100%
[80/97] Installing munin-common-2.0.59...
===> Creating groups.
Creating group 'munin' with gid '842'.
===> Creating users
Creating user 'munin' with uid '842'.
[80/97] Extracting munin-common-2.0.59: 100%
[81/97] Installing p5-Net-Server-2.009...
[81/97] Extracting p5-Net-Server-2.009: 100%
[82/97] Installing p5-Net-SNMP-6.0.1_1...
[82/97] Extracting p5-Net-SNMP-6.0.1_1: 100%
[83/97] Installing p5-Net-IP-1.26_1...
[83/97] Extracting p5-Net-IP-1.26_1: 100%
[84/97] Installing p5-Net-CIDR-0.20...
[84/97] Extracting p5-Net-CIDR-0.20: 100%
[85/97] Installing p5-List-MoreUtils-0.428...
[85/97] Extracting p5-List-MoreUtils-0.428: 100%
[86/97] Installing p5-Net-DNS-1.23,1...
[86/97] Extracting p5-Net-DNS-1.23,1: 100%
[87/97] Installing p5-Log-Log4perl-1.49...
[87/97] Extracting p5-Log-Log4perl-1.49: 100%
[88/97] Installing p5-DateTime-HiRes-0.01_1...
[88/97] Extracting p5-DateTime-HiRes-0.01_1: 100%
[89/97] Installing p5-Cache-Cache-1.08...
[89/97] Extracting p5-Cache-Cache-1.08: 100%
[90/97] Installing p5-DBD-Pg-3.10.5...
[90/97] Extracting p5-DBD-Pg-3.10.5: 100%
[91/97] Installing p5-HTML-Template-2.95_1...
[91/97] Extracting p5-HTML-Template-2.95_1: 100%
[92/97] Installing p5-CGI-Fast-2.15...
[92/97] Extracting p5-CGI-Fast-2.15: 100%
[93/97] Installing p5-File-Copy-Recursive-0.45...
[93/97] Extracting p5-File-Copy-Recursive-0.45: 100%
[94/97] Installing p5-Date-Manip-6.81...
[94/97] Extracting p5-Date-Manip-6.81: 100%
[95/97] Installing rrdtool-1.7.2_2...
[95/97] Extracting rrdtool-1.7.2_2: 100%
[96/97] Installing munin-node-2.0.59_1...
===> Creating groups.
Using existing group 'munin'.
===> Creating users
Using existing user 'munin'.
[96/97] Extracting munin-node-2.0.59_1: 100%
done.
[97/97] Installing munin-master-2.0.59...
===> Creating groups.
Using existing group 'munin'.
===> Creating users
Using existing user 'munin'.
[97/97] Extracting munin-master-2.0.59: 100%
=====
Message from postgresql11-client-11.7:

--
The PostgreSQL port has a collection of "side orders":

postgresql-docs
  For all of the html documentation

p5-Pg
  A perl5 API for client access to PostgreSQL databases.

postgresql-tcltk
  If you want tcl/tk client support.

postgresql-jdbc
  For Java JDBC support.

postgresql-odbc
  For client access from unix applications using ODBC as access
  method. Not needed to access unix PostgreSQL servers from Win32
  using ODBC. See below.

ruby-postgres, py-psycopg2
  For client access to PostgreSQL databases using the ruby & python
  languages.

postgresql-plperl, postgresql-pltcl & postgresql-plruby
  For using perl5, tcl & ruby as procedural languages.

postgresql-contrib
  Lots of contributed utilities, postgresql functions and
  datatypes. There you find pg_standby, pgcrypto and many other cool
  things.

etc...
=====
Message from munin-node-2.0.59_1:

--
Unless this file already existed, a sample configuration file
has been placed in /usr/local/etc/munin/munin-node.conf.

Please edit it according to your needs.

The Munin client will *not* be started automatically. To allow it
to start, put this line in /etc/rc.conf:

munin_node_enable="YES"

Then, it will be started on the next boot. If this line is already
present, the client will be started now.  Otherwise, edit
/etc/rc.conf and execute this command:

    /usr/local/etc/rc.d/munin-node start

For a list of plugins that will probably work run
/usr/local/sbin/munin-node-configure --suggest

If this is a fresh install run
/usr/local/sbin/munin-node-configure --shell | sh -x
to install the plugins automatically
=====
Message from munin-master-2.0.59:

--
Unless this file already existed, a sample configuration file
has been placed in /usr/local/etc/munin/munin.conf.

Please edit it according to your needs.

The Munin server will be run from cron under the user 'munin'.

If you need to customize the munin crontab, remove the lines
containing #BEGIN_MUNIN_MAIN and #END_MUNIN_MAIN, and add a line
with #MANUAL_MUNIN_CRONTAB.

③.起動できるように設定する。

vi /etc/rc.conf

④.以下の内容を記入する。

munin_node_enable="YES"

⑤.プラグインが正しく使用できる事を確認する。

/usr/local/sbin/munin-node-configure --suggest

⑥.以下のように表示する事を確認する。

[root@FreeBSD /]# /usr/local/sbin/munin-node-configure --suggest
Plugin                     | Used | Suggestions
------                     | ---- | -----------
amavis                     | no   | no [command /usr/local/bin/logtail or file /var/log/maillog not found]
apache_accesses            | no   | yes
apache_processes           | no   | yes
apache_volume              | no   | yes
apc_envunit_               | no   | no [no units to monitor]
courier_mta_mailqueue      | no   | no [spooldir not found]
courier_mta_mailstats      | no   | no [could not find executable]
courier_mta_mailvolume     | no   | no [could not find executable]
cpu                        | no   | yes
cupsys_pages               | no   | no [logfile not found]
dev_cpu_                   | no   | no [function not supported by kernel]
df                         | no   | yes
df_inode                   | no   | yes
digitemp_                  | no   | no [failed to find executable starting with 'digitemp_']
exim_mailqueue             | no   | no [command exiqgrep not found]
exim_mailstats             | no   | no ['/usr/local/sbin/exim -bP log_file_path' returned an error]
fail2ban                   | no   | no [/usr/local/bin/fail2ban-client not found]
hddtemp_smartctl           | no   | no [Predefined smartctl (/usr/local/sbin/smartctl) does not exist]
http_loadtime              | no   | no [programs wget and tr required]
if_                        | no   | yes (+vmx0)
if_errcoll_                | no   | yes (+vmx0)
if_packets_                | no   | yes (+vmx0)
iostat                     | no   | yes
ipmi_                      | no   | no [missing ipmitool command]
load                       | no   | yes
lpstat                     | no   | no [lpstat returned non-zero]
memory                     | no   | yes
munin_stats                | no   | yes
mysql_                     | no   | no [[[ plugin has errors, see below ]]]
netstat                    | no   | yes
nginx_request              | no   | no [no nginx status on http://localhost/nginx_status]
nginx_status               | no   | no [no nginx status on http://localhost/nginx_status]
ntp_                       | no   | yes (+133.243.238.163 +133.243.238.164 +133.243.238.243 +133.243.238.244 +216.239.35.0 +216.239.35.12 +61.205.120.130)
ntp_kernel_err             | no   | yes
ntp_kernel_pll_freq        | no   | yes
ntp_kernel_pll_off         | no   | yes
ntp_offset                 | no   | yes
ntp_states                 | no   | yes
nvidia_                    | no   | no [no nvclock executable at /usr/bin/nvclock, please configure]
open_files                 | no   | yes
pgbouncer_connections      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
pgbouncer_requests         | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postfix_mailqueue          | no   | no [spooldir not found]
postfix_mailvolume         | no   | no [postfix not found]
postgres_autovacuum        | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_bgwriter          | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_cache_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_checkpoints       | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_connections_      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_connections_db    | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_locks_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_oldest_prepared_xact_ | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_prepared_xacts_   | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_querylength_      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_scans_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_size_             | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_transactions_     | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_tuples_           | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_users             | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_xlog              | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
processes                  | no   | no [ps=ps failed]
qmailqstat                 | no   | no [file /var/qmail/bin/qmail-qstat not found]
sendmail_mailqueue         | no   | yes
sendmail_mailstats         | no   | yes
sendmail_mailtraffic       | no   | yes
slapd_                     | no   | no [Net::LDAP not found]
slapd_bdb_cache_           | no   | no [Can't execute db_stat file '/usr/bin/db4.6_stat']
slony_lag_                 | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
smart_                     | no   | no [smartmontools not found]
snort_alerts               | no   | no [/var/snort/snort.stats not readable]
snort_bytes_pkt            | no   | no [/var/snort/snort.stats not readable]
snort_drop_rate            | no   | no [/var/snort/snort.stats not readable]
snort_pattern_match        | no   | no [/var/snort/snort.stats not readable]
snort_pkts                 | no   | no [/var/snort/snort.stats not readable]
snort_traffic              | no   | no [/var/snort/snort.stats not readable]
squeezebox_                | no   | no [no connection on localhost port 9090]
squid_cache                | no   | no [could not connect: Connection refused]
squid_objectsize           | no   | no [could not connect: Connection refused]
squid_requests             | no   | no [could not connect: Connection refused]
squid_traffic              | no   | no [could not connect: Connection refused]
swap                       | no   | yes
systat                     | no   | yes
tomcat_                    | no   | no [could not connect to 127.0.0.1/manager/status?XML=true on port 8080]
uptime                     | no   | yes
users                      | no   | yes
varnish_                   | no   | no [varnishstat could not be found]
# The following plugins caused errors:
# mysql_:
#       Wrong amount of autoconf: expected 1 line, got 5 lines:
#       [start]no (install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at (eval 13) line 3.[newline]Perhaps the DBD::mysql perl module hasn't been fully installed,[newline]or perhaps the capitalisation of 'mysql' isn't right.[newline]Available drivers: DBM, ExampleP, File, Gofer, Mem, Pg, Proxy, Sponge.[newline])[end]
[root@FreeBSD /]#

⑦.MySQL の情報が取得できない場合のエラー情報です。

# The following plugins caused errors:
# mysql_:
#       Wrong amount of autoconf: expected 1 line, got 5 lines:
#       [start]no (install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (you may need to install the DBD::mysql module) (@INC contains: /usr/local/lib/perl5/site_perl/mach/5.30 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.30/mach /usr/local/lib/perl5/5.30) at (eval 13) line 3.[newline]Perhaps the DBD::mysql perl module hasn't been fully installed,[newline]or perhaps the capitalisation of 'mysql' isn't right.[newline]Available drivers: DBM, ExampleP, File, Gofer, Mem, Pg, Proxy, Sponge.[newline])[end]

上記のエラーが表示する場合は、p5-DBD-mysql を導入する。

2.p5-DBD-mysql 導入

MariaDB を使用しているのでリビルドする事にします。

①.p5-DBD-mysql の格納先まで移動する。

cd /usr/ports/databases/p5-DBD-mysql

②.make コマンドを実行する。

make config

③.以下の内容に設定する。

[ ] SSL  SSL protocol support

④.リビルドを実行する。

make install clean

⑤.以下のように、インストールが完了した事を確認する。

====> Compressing man pages (compress-man)
===>  Installing for p5-DBD-mysql-4.050
===>  Checking if p5-DBD-mysql is already installed
===>   Registering installation for p5-DBD-mysql-4.050
Installing p5-DBD-mysql-4.050...

⑥.自動的にアップデートされないようにロックする。

pkg lock p5-DBD-mysql

⑦.以下のように、ロックされる事を確認する。

[root@FreeBSD /usr/ports/databases/p5-DBD-mysql]# pkg lock p5-DBD-mysql
p5-DBD-mysql-4.050: lock this package? [y/N]: y
Locking p5-DBD-mysql-4.050

3.Munin 設定

①.プラグインが正しく使用できる事を確認する。

/usr/local/sbin/munin-node-configure --suggest

②.以下のように表示する事を確認する。

[root@FreeBSD /usr/ports/databases/p5-DBD-mysql]# /usr/local/sbin/munin-node-configure --suggest
Plugin                     | Used | Suggestions
------                     | ---- | -----------
amavis                     | no   | no [command /usr/local/bin/logtail or file /var/log/maillog not found]
apache_accesses            | no   | yes
apache_processes           | no   | yes
apache_volume              | no   | yes
apc_envunit_               | no   | no [no units to monitor]
courier_mta_mailqueue      | no   | no [spooldir not found]
courier_mta_mailstats      | no   | no [could not find executable]
courier_mta_mailvolume     | no   | no [could not find executable]
cpu                        | no   | yes
cupsys_pages               | no   | no [logfile not found]
dev_cpu_                   | no   | no [function not supported by kernel]
df                         | no   | yes
df_inode                   | no   | yes
digitemp_                  | no   | no [failed to find executable starting with 'digitemp_']
exim_mailqueue             | no   | no [command exiqgrep not found]
exim_mailstats             | no   | no ['/usr/local/sbin/exim -bP log_file_path' returned an error]
fail2ban                   | no   | no [/usr/local/bin/fail2ban-client not found]
hddtemp_smartctl           | no   | no [Predefined smartctl (/usr/local/sbin/smartctl) does not exist]
http_loadtime              | no   | no [programs wget and tr required]
if_                        | no   | yes (+vmx0)
if_errcoll_                | no   | yes (+vmx0)
if_packets_                | no   | yes (+vmx0)
iostat                     | no   | yes
ipmi_                      | no   | no [missing ipmitool command]
load                       | no   | yes
lpstat                     | no   | no [lpstat returned non-zero]
memory                     | no   | yes
munin_stats                | no   | yes
mysql_                     | no   | no [DBI connect('information_schema;mysql_connect_timeout=5','root',...) failed: Access denied for user 'root'@'localhost']
netstat                    | no   | yes
nginx_request              | no   | no [no nginx status on http://localhost/nginx_status]
nginx_status               | no   | no [no nginx status on http://localhost/nginx_status]
ntp_                       | no   | yes (+133.243.238.163 +133.243.238.164 +133.243.238.243 +133.243.238.244 +216.239.35.0 +216.239.35.8 +61.205.120.130)
ntp_kernel_err             | no   | yes
ntp_kernel_pll_freq        | no   | yes
ntp_kernel_pll_off         | no   | yes
ntp_offset                 | no   | yes
ntp_states                 | no   | yes
nvidia_                    | no   | no [no nvclock executable at /usr/bin/nvclock, please configure]
open_files                 | no   | yes
pgbouncer_connections      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
pgbouncer_requests         | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postfix_mailqueue          | no   | yes
postfix_mailvolume         | no   | yes
postgres_autovacuum        | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_bgwriter          | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_cache_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_checkpoints       | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_connections_      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_connections_db    | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_locks_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_oldest_prepared_xact_ | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_prepared_xacts_   | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_querylength_      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_scans_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_size_             | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_transactions_     | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_tuples_           | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_users             | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_xlog              | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
processes                  | no   | no [ps=ps failed]
qmailqstat                 | no   | no [file /var/qmail/bin/qmail-qstat not found]
sendmail_mailqueue         | no   | yes
sendmail_mailstats         | no   | yes
sendmail_mailtraffic       | no   | yes
slapd_                     | no   | no [Net::LDAP not found]
slapd_bdb_cache_           | no   | no [Can't execute db_stat file '/usr/bin/db4.6_stat']
slony_lag_                 | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
smart_                     | no   | no [smartmontools not found]
snort_alerts               | no   | no [/var/snort/snort.stats not readable]
snort_bytes_pkt            | no   | no [/var/snort/snort.stats not readable]
snort_drop_rate            | no   | no [/var/snort/snort.stats not readable]
snort_pattern_match        | no   | no [/var/snort/snort.stats not readable]
snort_pkts                 | no   | no [/var/snort/snort.stats not readable]
snort_traffic              | no   | no [/var/snort/snort.stats not readable]
squeezebox_                | no   | no [no connection on localhost port 9090]
squid_cache                | no   | no [could not connect: Connection refused]
squid_objectsize           | no   | no [could not connect: Connection refused]
squid_requests             | no   | no [could not connect: Connection refused]
squid_traffic              | no   | no [could not connect: Connection refused]
swap                       | no   | yes
systat                     | no   | yes
tomcat_                    | no   | no [could not connect to 127.0.0.1/manager/status?XML=true on port 8080]
uptime                     | no   | yes
users                      | no   | yes
varnish_                   | no   | no [varnishstat could not be found]

③.MySQLが正しく接続できてない場合は以下のように表示する。

mysql_                     | no   | no [DBI connect('information_schema;mysql_connect_timeout=5','root',...) failed: Access denied for user 'root'@'localhost']

④.MySQLと接続できるよに設定する。

vi /usr/local/etc/munin/plugin-conf.d/plugins.conf

⑤.以下の個所に、MySQLとの接続情報を記入する。

[mysql*]
env.mysql /usr/local/bin/mysql
env.mysqladmin /usr/local/bin/mysqladmin
env.mysqlshow /usr/local/bin/mysqlshow
■MySQLとの接続情報

env.mysqlconnection DBI:mysql:mysql;host=localhost;port=3306
env.mysqluser ユーザーID
env.mysqlpassword パスワード

⑥.再度、プラグインが正しく使用できる事を確認する。

/usr/local/sbin/munin-node-configure --suggest

⑦.以下のように表示する事を確認する。

[root@FreeBSD ~]# /usr/local/sbin/munin-node-configure --suggest
Plugin                     | Used | Suggestions
------                     | ---- | -----------
amavis                     | no   | no [command /usr/local/bin/logtail or file /var/log/maillog not found]
apache_accesses            | no   | yes
apache_processes           | no   | yes
apache_volume              | no   | yes
apc_envunit_               | no   | no [no units to monitor]
courier_mta_mailqueue      | no   | no [spooldir not found]
courier_mta_mailstats      | no   | no [could not find executable]
courier_mta_mailvolume     | no   | no [could not find executable]
cpu                        | no   | yes
cupsys_pages               | no   | no [logfile not found]
dev_cpu_                   | no   | no [function not supported by kernel]
df                         | no   | yes
df_inode                   | no   | yes
digitemp_                  | no   | no [failed to find executable starting with 'digitemp_']
exim_mailqueue             | no   | no [command exiqgrep not found]
exim_mailstats             | no   | no ['/usr/local/sbin/exim -bP log_file_path' returned an error]
fail2ban                   | no   | no [/usr/local/bin/fail2ban-client not found]
hddtemp_smartctl           | no   | no [Predefined smartctl (/usr/local/sbin/smartctl) does not exist]
http_loadtime              | no   | no [programs wget and tr required]
if_                        | no   | yes (+vmx0)
if_errcoll_                | no   | yes (+vmx0)
if_packets_                | no   | yes (+vmx0)
iostat                     | no   | yes
ipmi_                      | no   | no [missing ipmitool command]
load                       | no   | yes
lpstat                     | no   | no [lpstat returned non-zero]
memory                     | no   | yes
munin_stats                | no   | yes
mysql_                     | no   | yes (+bin_relay_log +binlog_groupcommit +commands +connections +files_tables +innodb_bpool +innodb_bpool_act +innodb_insert_buf +innodb_io +innodb_io_pend +innodb_log +innodb_rows +innodb_semaphores +innodb_tnx +myisam_indexes +network_traffic +qcache +qcache_mem +replication +select_types +slow +sorts +table_locks +tmp_tables)
netstat                    | no   | yes
nginx_request              | no   | no [no nginx status on http://localhost/nginx_status]
nginx_status               | no   | no [no nginx status on http://localhost/nginx_status]
ntp_                       | no   | yes (+133.243.238.163 +133.243.238.164 +133.243.238.243 +133.243.238.244 +210.173.160.27 +210.173.160.57 +210.173.160.87 +216.239.35.0 +216.239.35.12 +216.239.35.4 +216.239.35.8 +61.205.120.130)
ntp_kernel_err             | no   | yes
ntp_kernel_pll_freq        | no   | yes
ntp_kernel_pll_off         | no   | yes
ntp_offset                 | no   | yes
ntp_states                 | no   | yes
nvidia_                    | no   | no [no nvclock executable at /usr/bin/nvclock, please configure]
open_files                 | no   | yes
pgbouncer_connections      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
pgbouncer_requests         | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postfix_mailqueue          | no   | yes
postfix_mailvolume         | no   | yes
postgres_autovacuum        | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_bgwriter          | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_cache_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_checkpoints       | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_connections_      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_connections_db    | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_locks_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_oldest_prepared_xact_ | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_prepared_xacts_   | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_querylength_      | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_scans_            | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_size_             | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_transactions_     | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_tuples_           | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_users             | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
postgres_xlog              | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
processes                  | no   | no [ps=ps failed]
qmailqstat                 | no   | no [file /var/qmail/bin/qmail-qstat not found]
sendmail_mailqueue         | no   | yes
sendmail_mailstats         | no   | yes
sendmail_mailtraffic       | no   | yes
slapd_                     | no   | no [Net::LDAP not found]
slapd_bdb_cache_           | no   | no [Can't execute db_stat file '/usr/bin/db4.6_stat']
slony_lag_                 | no   | no [could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/tmp/.s.PGSQL.5432"?]
smart_                     | no   | no [smartmontools not found]
snort_alerts               | no   | no [/var/snort/snort.stats not readable]
snort_bytes_pkt            | no   | no [/var/snort/snort.stats not readable]
snort_drop_rate            | no   | no [/var/snort/snort.stats not readable]
snort_pattern_match        | no   | no [/var/snort/snort.stats not readable]
snort_pkts                 | no   | no [/var/snort/snort.stats not readable]
snort_traffic              | no   | no [/var/snort/snort.stats not readable]
squeezebox_                | no   | no [no connection on localhost port 9090]
squid_cache                | no   | no [could not connect: Connection refused]
squid_objectsize           | no   | no [could not connect: Connection refused]
squid_requests             | no   | no [could not connect: Connection refused]
squid_traffic              | no   | no [could not connect: Connection refused]
swap                       | no   | yes
systat                     | no   | yes
tomcat_                    | no   | no [could not connect to 127.0.0.1/manager/status?XML=true on port 8080]
uptime                     | no   | yes
users                      | no   | yes
varnish_                   | no   | no [varnishstat could not be found]

⑧.MySQLと正常に接続できた場合は以下のように表示する。

mysql_                     | no   | yes (+bin_relay_log +binlog_groupcommit +commands +connections +files_tables +innodb_bpool +innodb_bpool_act +innodb_insert_buf +innodb_io +innodb_io_pend +innodb_log +innodb_rows +innodb_semaphores +innodb_tnx +myisam_indexes +network_traffic +qcache +qcache_mem +replication +select_types +slow +sorts +table_locks +tmp_tables)

⑨.プラグインを登録する。

/usr/local/sbin/munin-node-configure --shell | sh -x

⑩.プラグインが正しく登録された事を確認する。

ls -l /usr/local/etc/munin/plugins

⑪.以下のように表示する事を確認する。

apache_accesses -> /usr/local/share/munin/plugins/apache_accesses*
apache_processes -> /usr/local/share/munin/plugins/apache_processes*
apache_volume -> /usr/local/share/munin/plugins/apache_volume*
cpu -> /usr/local/share/munin/plugins/cpu*
df -> /usr/local/share/munin/plugins/df*
df_inode -> /usr/local/share/munin/plugins/df_inode*
if_errcoll_vmx0 -> /usr/local/share/munin/plugins/if_errcoll_*
if_packets_vmx0 -> /usr/local/share/munin/plugins/if_packets_*
if_vmx0 -> /usr/local/share/munin/plugins/if_*
iostat -> /usr/local/share/munin/plugins/iostat*
load -> /usr/local/share/munin/plugins/load*
memory -> /usr/local/share/munin/plugins/memory*
munin_stats -> /usr/local/share/munin/plugins/munin_stats*
mysql_bin_relay_log -> /usr/local/share/munin/plugins/mysql_*
mysql_binlog_groupcommit -> /usr/local/share/munin/plugins/mysql_*
mysql_commands -> /usr/local/share/munin/plugins/mysql_*
mysql_connections -> /usr/local/share/munin/plugins/mysql_*
mysql_files_tables -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_bpool -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_bpool_act -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_insert_buf -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_io -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_io_pend -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_log -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_rows -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_semaphores -> /usr/local/share/munin/plugins/mysql_*
mysql_innodb_tnx -> /usr/local/share/munin/plugins/mysql_*
mysql_myisam_indexes -> /usr/local/share/munin/plugins/mysql_*
mysql_network_traffic -> /usr/local/share/munin/plugins/mysql_*
mysql_qcache -> /usr/local/share/munin/plugins/mysql_*
mysql_qcache_mem -> /usr/local/share/munin/plugins/mysql_*
mysql_replication -> /usr/local/share/munin/plugins/mysql_*
mysql_select_types -> /usr/local/share/munin/plugins/mysql_*
mysql_slow -> /usr/local/share/munin/plugins/mysql_*
mysql_sorts -> /usr/local/share/munin/plugins/mysql_*
mysql_table_locks -> /usr/local/share/munin/plugins/mysql_*
mysql_tmp_tables -> /usr/local/share/munin/plugins/mysql_*
netstat -> /usr/local/share/munin/plugins/netstat*
ntp_133.243.238.163 -> /usr/local/share/munin/plugins/ntp_*
ntp_133.243.238.164 -> /usr/local/share/munin/plugins/ntp_*
ntp_133.243.238.243 -> /usr/local/share/munin/plugins/ntp_*
ntp_133.243.238.244 -> /usr/local/share/munin/plugins/ntp_*
ntp_216.239.35.4 -> /usr/local/share/munin/plugins/ntp_*
ntp_216.239.35.8 -> /usr/local/share/munin/plugins/ntp_*
ntp_61.205.120.130 -> /usr/local/share/munin/plugins/ntp_*
ntp_kernel_err -> /usr/local/share/munin/plugins/ntp_kernel_err*
ntp_kernel_pll_freq -> /usr/local/share/munin/plugins/ntp_kernel_pll_freq*
ntp_kernel_pll_off -> /usr/local/share/munin/plugins/ntp_kernel_pll_off*
ntp_offset -> /usr/local/share/munin/plugins/ntp_offset*
ntp_states -> /usr/local/share/munin/plugins/ntp_states*
open_files -> /usr/local/share/munin/plugins/open_files*
postfix_mailqueue -> /usr/local/share/munin/plugins/postfix_mailqueue*
postfix_mailvolume -> /usr/local/share/munin/plugins/postfix_mailvolume*
sendmail_mailqueue -> /usr/local/share/munin/plugins/sendmail_mailqueue*
sendmail_mailstats -> /usr/local/share/munin/plugins/sendmail_mailstats*
sendmail_mailtraffic -> /usr/local/share/munin/plugins/sendmail_mailtraffic*
swap -> /usr/local/share/munin/plugins/swap*
systat -> /usr/local/share/munin/plugins/systat*
uptime -> /usr/local/share/munin/plugins/uptime*
users -> /usr/local/share/munin/plugins/users*

⑫.ホスト名を変更する。

vi /usr/local/etc/munin/munin.conf

⑬.以下のように変更する。

■変更前

[121amd64-default-job-15]
■変更後

[ホスト名]

⑭.Munin を起動する。

/usr/local/etc/rc.d/munin-node start

⑮.Muninが情報を取得できてる事を確認する。

ls -l /usr/local/www/munin

Muninを起動後、5分以上経過後に実行する。

⑯.以下のように表示する事を確認する。

apache-day.html
apache-month.html
apache-week.html
apache-year.html
disk-day.html
disk-month.html
disk-week.html
disk-year.html
FreeBSD/
index.html
munin-day.html
munin-month.html
munin-week.html
munin-year.html
network-day.html
network-month.html
network-week.html
network-year.html
problems.html
sendmail-day.html
sendmail-month.html
sendmail-week.html
sendmail-year.html
static/
system-day.html
system-month.html
system-week.html
system-year.html
time-day.html
time-month.html
time-week.html
time-year.html

4.Apache 設定

Apache に表示させる場合の設定になります。

①.Munin用の設定ファイルを作成する。

vi /usr/local/etc/apache24/Includes/munin.conf

②.以下の内容を記入する。

Alias /munin /usr/local/www/munin

<Location /munin>
    Require ip 127.0.0.1
    Require ip ローカルのIPアドレスを記入する。
</Location>

外部公開させないため、ローカルのIPアドレスを記入する。

③.Apacheを再起動する。

/usr/local/etc/rc.d/apache24 restart

④.Muninが表示する事を確認する。

http://IPアドレス/munin